package com.mineoj.service;

import com.mineoj.model.entity.SolutionThumb;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mineoj.model.entity.User;

/**
* @author 明月
* @description 针对表【solution_thumb(题解点赞)】的数据库操作Service
* @createDate 2025-04-05 16:15:50
*/
public interface SolutionThumbService extends IService<SolutionThumb> {
    /**
     * 点赞
     *
     * @param solutionId
     * @param loginUser
     * @return
     */
    int doSolutionThumb(long solutionId, User loginUser);

    /**
     * 题解点赞（内部服务）
     *
     * @param userId
     * @param solutionId
     * @return
     */
    int doSolutionThumbInner(long userId, long solutionId);

}
